package model;

/** Class represents edge in graph */
public class Edge {
	
	/** Number of first vertex */
	private int from;
	
	/** Number of second vertex */
	private int to;
	
	/** Constructor 
	 * 
	 * @param from Number of first vertex
	 * @param to Number of second vertex
	 */
	public Edge (int from, int to) {
		this.from = from;
		this.to = to;
	}
	
	/** Method returns first vertex
	 * 
	 * @return first vertex
	 */
	public int getFrom() {
		return from;
	}
	
	/** Method returns second vertex
	 * 
	 * @return second vertex
	 */
	public int getTo() {
		return to;
	}
}
